package com.lavender.extention.circle_dependency.setter_dependency_singleton;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 2：setter注入（Singleton模式）不会造成循环依赖
 * Spring默认是Singleton模式
 * </p>
 *
 * @author: zhu.chen
 * @date: 2020/12/24
 * @version: v1.0.0
 */
@Component
public class SetterSingletonA {

    @Autowired
    private SetterSingletonB setterSingletonB;

}
